<%@ Control Language="C#" AutoEventWireup="true" CodeFile="SpotCategoryList.ascx.cs" Inherits="admin_SpotCategoryList" %>
<table>
    <tr>
        <td style="width: 178px">
            <asp:Label ID="Label1" runat="server" Text="Enter name of category:"></asp:Label></td>
        <td style="width: 100px">
            <asp:TextBox ID="txtSearch" runat="server"></asp:TextBox></td>
        <td style="width: 100px">
            <asp:LinkButton ID="lnkSearch" CssClass="c_button" runat="server" OnClick="lnkSearch_Click">Search</asp:LinkButton></td>
    </tr>
</table>
<asp:Label ID="Label2" runat="server" Text="List of tour spot categories:"></asp:Label><br />
<asp:GridView CssClass="list_table" ID="dgrSpotCate" runat="server" AutoGenerateColumns="False" DataKeyNames="ID" OnRowEditing="dgrSpotCate_RowEditing" OnRowDeleting="dgrSpotCate_RowDeleting" OnRowDeleted="dgrSpotCate_RowDeleted">
    <Columns>
        <asp:TemplateField>       
            <ItemTemplate>
                <asp:CheckBox ID="chkChoice" runat="server" />
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Name">        
            <ItemTemplate>
                <asp:Label ID="Label1" runat="server" Text='<%# Bind("Name") %>'></asp:Label>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Description">        
            <ItemTemplate>
                <asp:Label ID="Label2" runat="server" Text='<%# Bind("Description") %>'></asp:Label>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="State">           
            <ItemTemplate>
                <asp:CheckBox ID="chkState" Enabled="false" runat="server" Checked='<%# Bind("State") %>'/>
            </ItemTemplate>
            <ItemStyle HorizontalAlign="Center" />
        </asp:TemplateField>
        <asp:CommandField ShowCancelButton="False" ShowEditButton="True" />
    </Columns>
</asp:GridView>
<div id="paging_bar">
    &nbsp;</div>
<asp:LinkButton ID="lnkDelete" runat="server" CssClass="lnkDelete" OnClick="lnkDelete_Click">Delete selected items</asp:LinkButton>
<script type="text/javascript" language="javascript">    
	window.location.hash="<%=ActiveAccording %>";
</script>